Skip to content

[RAPPS-DB] Use SaveAs to avoid VC and .NET installer name collisions - #399

Merged
julenuri merged 1 commit into
reactos:masterfrom
xlucn:save_as
Jul 28, 2026
Merged

[RAPPS-DB] Use SaveAs to avoid VC and .NET installer name collisions#399
julenuri merged 1 commit into
reactos:masterfrom
xlucn:save_as

Conversation

@xlucn

@xlucn xlucn commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Problem:
I noticed some downloaded files have the same filename. For example, vc2008sp1run and vc2010sp1run are both named vcredist_x86.exe. That results in the files of different versions replacing each other after download, so those files can't be kept, even if the user wants to keep them for possible future reinstall.

Solution:
The SaveAs fields are added so that the downloaded files are properly renamed to avoid filename collisions:

  • For Microsoft Visual C++ Redistributables, a _vs20xx is added before the extension, following the naming convention found in vcredist_arm_vs2015.exe
  • For .NET Framework v1.1 and v2.0, 11 or 20 is added before the extension, following the naming convention of the app name.

Not sure if this is the intended usage of SaveAs. It solves the problem tho :)

Test:
I have tested locally in applications manager by updating the local appdb. The files are saved in different filenames, and can be installed with, as expected.

@binarymaster binarymaster changed the title use SaveAs to avoid name collisions [RAPPS-DB] Use SaveAs to avoid VC and .NET installer name collisions Jul 28, 2026
@binarymaster binarymaster added the enhancement New feature or request label Jul 28, 2026
@whindsaks

Copy link
Copy Markdown
Contributor

Not sure if this is the intended usage of SaveAs.

It was designed for URLs where it does not have .exe or anything sensible in the name but your usage is a nice tweak.

@julenuri

Copy link
Copy Markdown
Collaborator

Good point, really. 👍

@julenuri
julenuri merged commit 3c4e23a into reactos:master Jul 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants